/*
 * Copyright (C) 2017-2019 Dremio Corporation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
@import '../../styles/constants/index.scss';
.SearchableMultiSelect {
  padding: 4px 0px;

  &__value {
    @include input-size();
    height: unset !important;
    min-height: 32px;
    justify-content: space-between;
    padding-top: 4px !important;
    padding-bottom: 4px !important;

    &.--error {
      border-color: $error-color !important;
    }
  }

  &__option {
    &.--selected {
      background-color: unset !important;
    }
  }

  &__inputContainer {
    width: 100%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-top: -8px !important; // This is to negate the margin-top on tags, tags need margin-top when they wrap
    min-width: 250px;
  }

  &__input {
    flex-grow: 2;
    min-width: 100px;
    height: 32px;
    background-color: inherit;
    border: none;
    &:focus-visible {
      outline: none;
    }
  }

  &__menuList {
    max-height: 300px;
  }

  &__iconContainer {
    display: flex;
    align-items: center;
    align-self: flex-end;
    padding-bottom: 4px;
  }

  &__clearIcon {
    display: flex;
    cursor: pointer;
    padding-right: 4px;
  }

  &__dropdownIcon {
    display: flex;
    border-left: 1px solid $border-color;
    padding-left: 4px;
    cursor: pointer;
  }
}
